<template>
  <div style="margin: 180px 120px">
    <el-row :gutter="20">
      <el-col :span="6">
        <div>
          <el-statistic
            group-separator=","
            :value="drcjwtsl"
            title="当日创建问题数量"
          ></el-statistic>
        </div>
      </el-col>
      <el-col :span="6">
        <div>
          <el-statistic
            title="解决当日问题数量"
            group-separator=","
            :value="jjdrwtsl">
          </el-statistic>
        </div>
      </el-col>
      <el-col :span="6">
        <div>
          <el-statistic
            :value="jjwrwtsl"
            group-separator=","
            title="解决往日问题数量"
          >
          </el-statistic>
        </div>
      </el-col>
      <el-col :span="6">
        <div>
          <el-statistic
            :value="jzdrwjjsl"
            group-separator=","
            title="截止当日未解决数量">
          </el-statistic>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top: 80px">
      <el-col :span="8">
        <div>
          <el-statistic
            group-separator=","
            :value="bzjswtsl"
            title="本周接收问题数量"
          ></el-statistic>
        </div>
      </el-col>
      <el-col :span="8">
        <div>
          <el-statistic
            title="本周问题已解决数量"
            group-separator=","
            :value="bzwtyjjsl">
          </el-statistic>
        </div>
      </el-col>
      <el-col :span="8">
        <div>
          <el-statistic
            :value="bzwjjwtsl"
            group-separator=","
            title="本周未解决问题数量"
          >
          </el-statistic>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top: 80px;color: red">
      <el-col :span="12">
        <div>
          <el-statistic
            group-separator=","
            :value="eqwmqztwtSl"
            title="二期已解决未明确主题"
          ></el-statistic>
        </div>
      </el-col>
      <el-col :span="12">
        <div>
          <el-statistic
            title="本周已解决未明确主题"
            group-separator=","
            :value="bzwmqztwtsl">
          </el-statistic>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top: 80px">
      <el-col :span="8">
        <div>
          <el-statistic
            group-separator=","
            :value="zrclz"
            title="中软处理中"
          ></el-statistic>
        </div>
      </el-col>
      <el-col :span="8">
        <div>
          <el-statistic
            group-separator=","
            :value="scclz"
            title="税撑处理中"
          ></el-statistic>
        </div>
      </el-col>
      <el-col :span="8">
        <div>
          <el-statistic
            title="税撑待受理"
            group-separator=","
            :value="scdsl">
          </el-statistic>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      drcjwtsl: 0,
      jjdrwtsl: 0,
      jjwrwtsl: 0,
      jzdrwjjsl: 0,
      bzjswtsl: 0,
      bzwtyjjsl: 0,
      bzwjjwtsl: 0,
      eqwmqztwtSl: 0,
      bzwmqztwtsl: 0,
      zrclz: 0,
      scclz: 0,
      scdsl: 0
    }
  },
  activated() {
    this.initPage()
  },
  methods: {
    initPage() {
      let _this = this
      this.$http({
        url: '/zr/dytz/initStatistic',
        method: 'post'
      }).then(({data}) => {
        if (data && data.code === 0) {
          _this.drcjwtsl = data.statistic.drcjwtsl
          _this.jjdrwtsl = data.statistic.jjdrwtsl
          _this.jjwrwtsl = data.statistic.jjwrwtsl
          _this.jzdrwjjsl = data.statistic.jzdrwjjsl
          _this.bzjswtsl = data.statistic.bzjswtsl
          _this.bzwtyjjsl = data.statistic.bzwtyjjsl
          _this.bzwjjwtsl = data.statistic.bzwjjwtsl
          _this.eqwmqztwtSl = data.statistic.eqwmqztwtSl
          _this.bzwmqztwtsl = data.statistic.bzwmqztwtsl
          _this.zrclz = data.statistic.zrclz
          _this.scclz = data.statistic.scclz
          _this.scdsl = data.statistic.scdsl
          // this.$forceUpdate()
        }
      })
    }
  }
}
</script>
<style lang="scss">
.el-statistic .head {
  font-size: 18px;
  text-align: center;
}

.el-statistic .con {
  font-size: 28px;
  text-align: center;
}
</style>
